package io.renren.modules.demo.service;

import com.alibaba.fastjson.JSONObject;
import io.renren.common.service.CrudService;
import io.renren.modules.demo.dto.LeaveMeaasgeDTO;
import io.renren.modules.demo.dto.SharedCardDTO;
import io.renren.modules.demo.entity.SharedCardEntity;
import okhttp3.HttpUrl;
import okhttp3.OkHttpClient;
import okhttp3.Request;
import okhttp3.Response;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.Date;
import java.util.List;

/**
 * 
 *
 * @author Mark sunlightcs@gmail.com
 * @since 1.0.0 2021-05-24
 */
public interface SharedCardService extends CrudService<SharedCardEntity, SharedCardDTO> {

    public Object share(String uri) throws IOException;
    public List<SharedCardDTO> getAllShare();
    public Object shareUri( String uri, String msg, MultipartFile img) throws Exception;
    public List<SharedCardDTO> getAllShareByName(String name);
}